﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Bot.Domain.Enum;
using Comm100.Domain.Entity;
using Comm100.Framework.Domain.Entity;

namespace Bot.Domain.Entities
{
    [Table("t_Chatbot_Response")]
    public class Response: ISoftDelete
    {
        [Key]             
        public Guid Id { get; set; }
        public Guid ParentId { get; set; }
        public EnumAnswerType Type { get; set; }
        public string TextVariants { get; set; }
        public string HtmlTextVariants { get; set; }
        public string Message { get; set; }
        public Guid? ImageId { get; set; }
        public string VideoUrl { get; set; }
        public Guid? QuickReplyId { get; set; }
        public Guid? WebhookId { get; set; }
        public int Order { get; set; }
        public bool IsDeleted { get; set; }

        [NotMapped]
        public virtual Image Image { get; set; }
        [NotMapped]
        public virtual QuickReply QuickReply { get; set; }
        [NotMapped]
        public virtual Webhook Webhook { get; set; }
        [NotMapped]
        public virtual ICollection<ResponseButton> Buttons { get; set; }
    }
}
